﻿using StackExchange.Redis;

namespace AChance.Func
{
    public static class FunRedis
    {
        private static ConnectionMultiplexer _redis = ConnectionMultiplexer.Connect(FunContext.AppSettings.Redis.Configuration);
        public static class User
        {
            public static string No { get; set; } = "00";
        }
        public static class Db
        {
            public static IDatabase Users
            {
                get
                {
                    return _redis.GetDatabase(10);
                }
            }
            public static IDatabase Locks
            {
                get
                {
                    return _redis.GetDatabase(13);
                }
            }
        }


    }
}